package test

import cn.hutool.log.Log
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking

private val log = Log.get()

fun main() = runBlocking { // this: CoroutineScope
  launch { // launch a new coroutine and continue
    delay(1000L) // non-blocking delay for 1 second (default time unit is ms)
    log.info("World!") // print after delay
  }
  log.info("Hello") // main coroutine continues while a previous one is delayed
}
